<template>
	<div class="p-grid">
		<div class="p-col-12">
			<div class="card">
				<h5>高级</h5>
				<FileUpload name="demo[]" chooseLabel="选择文件" uploadLabel="开始上传" cancelLabel="取消上传" url="./upload.php" @upload="onUpload" :multiple="true" accept="image/*" :maxFileSize="1000000"/>

				<h5>基本</h5>
				<FileUpload mode="basic"  chooseLabel="选择文件" name="demo[]" url="./upload.php" accept="image/*" :maxFileSize="1000000" @upload="onUpload" />
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		methods: {
			onUpload() {
				this.$toast.add({severity: 'info', summary: 'Success', detail: 'File Uploaded', life: 3000});
			}
		}
	}
</script>

<style scoped>

</style>
